package com.heima.config;

import feign.Logger;
import org.springframework.cloud.openfeign.EnableFeignClients;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.Configuration;



@Configuration //配置类
@EnableFeignClients(basePackages = "com.heima.feigins")//开启feigin注解,告诉框架去扫描使用@FeiginClient的客户端
@ComponentScan("com.heima.feigins.fallback")
public class HeimaFeiginAutoConfiguration {
    @Bean
    Logger.Level level(){
        return Logger.Level.FULL;
    }
}
